package poj;

import java.math.BigDecimal;
import java.util.Scanner;

public class POJ1001 {
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		while(in.hasNext()){
			String r = in.next();
			int n = in.nextInt();
			BigDecimal R = new BigDecimal(r);
			R = R.pow(n);
			String result = R.stripTrailingZeros().toPlainString();
			//String result2 = R.stripTrailingZeros().toEngineeringString();
			//String result3 = R.stripTrailingZeros().toString();
			if(result.charAt(0) == '0')
				result = result.substring(1);
			System.out.println(result);
			//System.out.println(result2);
			//System.out.println(result3);
		}
		
		System.out.println(BigDecimal.TEN);
		System.out.println(BigDecimal.ROUND_HALF_UP);
	}
}
